package com.comdefinition

import com.comdefinition.cache.SpringBeanGet
import groovy.transform.CompileStatic
import groovy.transform.TypeChecked
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.ApplicationContext

/**
 * 应用入口
 */
@CompileStatic
@TypeChecked
@SpringBootApplication
class ApplicationRun {

    static void main(String[] args) throws Exception {
        final ApplicationContext applicationContext = SpringApplication.run ApplicationRun.class, args
        SpringBeanGet.setApplicationContext applicationContext
    }
}
